/*
 * @Author: wangjq4214
 * @Date: 2022-05-03 22:35:36
 * @LastEditTime: 2022-05-08 14:59:14
 * @LastEditors: wangjq4214
 */
import { RouteObject } from 'react-router-dom';
import Loadable from '../Loadable';

const AddCompute = Loadable(lazy(() => import('@/views/compute/addCompute')));
const QueryCompute = Loadable(
  lazy(() => import('@/views/compute/queryCompute'))
);

export const computeRouter: RouteObject[] = [
  {
    path: 'compute',
    children: [
      {
        path: 'add',
        element: <AddCompute />,
        meta: {
          key: 'add-compute',
          icon: 'plus',
          name: '创建计算集群',
        },
      },
      {
        path: 'query',
        element: <QueryCompute />,
        meta: {
          key: 'query-compute',
          icon: 'list',
          name: '查询计算集群',
        },
      },
    ],
    meta: {
      key: 'compute',
      name: '计算集群',
      icon: 'desktop',
    },
  },
];
